package com.yq.ylmall.client.order.fallback;

import com.yq.ylmall.client.order.OrderFeignClient;
import com.yq.ylmall.model.order.OrderInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class OrderFeignFallback implements OrderFeignClient {

    @Override
    public OrderInfo getOrderInfoByOrderNo(String orderNo) {
        log.warn("服务熔断：根据订单号获取订单信息");
        return null;
    }

    @Override
    public void updateOrderStatus(String orderNo, Integer status) {
        log.warn("服务熔断：更新订单状态");
    }

}
